package com.example.springbootredis.service;

import com.example.springbootredis.entity.Classroom;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ClassroomService {
    Classroom save(Classroom classroom);
    List<Classroom> findAll();
    void deleteClassroomById(Long id);
    List<Classroom> findByCampus(String campus);
    List<Classroom> findByClassroomNameContaining(String classroomName);
    List<Classroom> findByCampusAndClassroomNameContaining(String campus, String classroomName);
    boolean existsByClassroomNo(String classroomNo);
    boolean existsByClassroomNoAndIdNot(String classroomNo, Long id);
}